package com.learncloud.user.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lbx
 * @version 1.0.0
 * @description TODO
 * @date 2021/10/26 9:28
 **/
@Slf4j
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @GetMapping(value = "get")
    public String get(HttpServletRequest request) throws InterruptedException {
        log.info("{} is called",request.getRequestURL().toString());
        Thread.sleep(2000);
        return "hello world";
    }
}
